\documentclass{article}
\input tmp.inputs
\pagestyle{empty}
\begin{document}
\pstree[levelsep=20pt]{\Tcircle[fillstyle=solid,fillcolor=black]{\white 10}}{
  \pstree{\Tcircle[fillstyle=solid,fillcolor=lightgray]{8}}{
    \Tcircle[fillstyle=solid,fillcolor=black]{\white 5}
    \Tcircle[fillstyle=solid,fillcolor=black]{\white 9}}
  \pstree{\Tcircle[fillstyle=solid,fillcolor=lightgray]{14}}{
    \Tcircle[fillstyle=solid,fillcolor=black]{\white 12}
    \pstree{\Tcircle[fillstyle=solid,fillcolor=black]{\white 15}}{
      \Tp[edge=none]
      \Tcircle[fillstyle=solid,fillcolor=lightgray]{16}}}}
\end{document}
